<%i=1%>
<table>
  <tr>
    <%for @photo in @album.photos%>
      <td width="100" height="100" align="center">
        <div class="thumbwrapper">      
          <%=highslide_photo(@photo)%>
          </div>
          <br/>
          <%= in_place_editor_field "photo" , 'title', {}, {
            :load_text_url=>url_for(:action=>"get_photo_title", :id=>@photo)
          }%>
          <%=photo_admin_url @photo%>
        </td>
        <%if i%4==0 %>
        </tr>
        <tr>
        <%end%>
        <%i+=1%>
      <%end%>
    </tr>
  </table>